package com.px.chapter_Dec_1.textt.fileTEst;

import java.beans.Customizer;
import java.io.File;
import java.util.ArrayDeque;
import java.util.LinkedList;
import java.util.Queue;

public class FileTest {
    public static void main(String[] args) {
        File a = new File("D:\\");
        File[] b = a.listFiles();
        File c = b[2].getAbsoluteFile();
        b = c.listFiles();
        File d = b[0].getAbsoluteFile();
        System.out.println(d);
        ff(a);
    }

    public static void ff(File d) {
        File[] dd = d.listFiles();
        if (dd == null) return;
        for (File aa:dd){
            System.out.println(aa.getAbsoluteFile());
            if (aa.isDirectory()){
                ff(aa);
            }

        }
    }
}



